Skip to content

Conversation

Johan-Liebert1
Copy link
Collaborator

@Johan-Liebert1 Johan-Liebert1 commented Sep 24, 2025

Finish up implementation for install-to-filesystem for composefs-backend

We were using composefs-native and composefs-backend interchangeably.
Replace all instances of composefs-native with composefs-backend

Move all composefs-backend options to a single struct so that we can
test for boolean instead of testing for Some/None for composefs-backend
options

The source imgref was being stored in the .origin file, even if target imgref was
provided. Now we store the target imgref

Start finalize-staged service on update/switch

Add composefs opts to install-to-existing-root

@bootc-bot bootc-bot bot requested a review from jeckersb September 24, 2025 10:26
@Johan-Liebert1 Johan-Liebert1 force-pushed the composefs-to-filesystem branch from b4cd3c2 to 6134880 Compare October 8, 2025 06:07
@github-actions github-actions bot added the area/install Issues related to `bootc install` label Oct 8, 2025
@Johan-Liebert1 Johan-Liebert1 force-pushed the composefs-to-filesystem branch 3 times, most recently from 82ee61e to ebe252c Compare October 8, 2025 08:06
@Johan-Liebert1 Johan-Liebert1 marked this pull request as ready for review October 8, 2025 08:24
@bootc-bot bootc-bot bot requested a review from henrywang October 8, 2025 08:25
@Johan-Liebert1 Johan-Liebert1 changed the title composese-backend: Implement install to filesystem New changes / features for composefs-backend Oct 8, 2025
@Johan-Liebert1 Johan-Liebert1 added the area/composefs Issues related to composefs label Oct 8, 2025
@Johan-Liebert1
Copy link
Collaborator Author

Currently with the option --bootloader=systemd we do everything according to the BLS spec, but the bootloader is still grub, as we don't have systemd-boot support in bootupd. Until coreos/bootupd#978 lands, I was thinking of a very crude hack of simply replacing grubx64.efi with systemd-boot.efi (renamed to grubx64.efi so shim picks it up); this is basically how I've been testing systemd-boot until now.

Does it make sense to do the above until we have systemd-boot support in bootupd?

@cgwalters
Copy link
Collaborator

Yes I'll try to take a look at coreos/bootupd#978 soon.

Otherwise see #806 (comment) - I think the "no bootupd = systemd-boot" path also makes sense and should be relatively straightforward to implement here.

@cgwalters
Copy link
Collaborator

Ah my bad, I think we have some textual (partial semantic) conflicts in #1662

@Johan-Liebert1
Copy link
Collaborator Author

That's okay. I can rebase on main afterwards


#[cfg(feature = "composefs-backend")]
#[clap(flatten)]
pub(crate) compoesfs_opts: InstallComposefsOpts,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's your opinion on adding something like typos to the CI? There are quite a few typos across the repo

@Johan-Liebert1 Johan-Liebert1 force-pushed the composefs-to-filesystem branch from b0b66d3 to 791fc9a Compare October 16, 2025 06:38
Signed-off-by: Pragyan Poudyal <[email protected]>
Signed-off-by: Colin Walters <[email protected]>
We were using composefs-native and composefs-backend interchangeably.
Replace all instances of `composefs-native` with `composefs-backend`

Move all composefs-backend options to a single struct so that we can
test for boolean instead of testing for Some/None for composefs-backend
options

Signed-off-by: Pragyan Poudyal <[email protected]>
Signed-off-by: Colin Walters <[email protected]>
Instead of storing the source imgref in the .origin file, we store the
target imgref

Signed-off-by: Pragyan Poudyal <[email protected]>
Signed-off-by: Colin Walters <[email protected]>
Rename service to bootc-finalize-staged

Signed-off-by: Pragyan Poudyal <[email protected]>
Signed-off-by: Colin Walters <[email protected]>
@cgwalters cgwalters force-pushed the composefs-to-filesystem branch from 791fc9a to c268ac2 Compare October 16, 2025 18:57
@cgwalters
Copy link
Collaborator

I rebased this one

@cgwalters
Copy link
Collaborator

OK, the new composefs test fails on this one; it's possible I broke something when rebasing, or it's a legit regression.

@cgwalters cgwalters force-pushed the composefs-to-filesystem branch from c268ac2 to 1d384c4 Compare October 17, 2025 00:34
@Johan-Liebert1
Copy link
Collaborator Author

So, cd crates/lib && cargo check --no-default-features failed. Running it on my local branch succeeds

Gate some lines behind composefs-backend feature

Signed-off-by: Pragyan Poudyal <[email protected]>
@Johan-Liebert1 Johan-Liebert1 force-pushed the composefs-to-filesystem branch from a5b8afa to 9243712 Compare October 17, 2025 03:15
@cgwalters cgwalters merged commit 51d70f1 into bootc-dev:main Oct 17, 2025
49 of 50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/composefs Issues related to composefs area/install Issues related to `bootc install`

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants